import { Entity, PrimaryColumn, Column, CreateDateColumn, UpdateDateColumn } from 'typeorm';

@Entity('firmware_wristband_files')
export class FirmwareWristbandFile {
  @PrimaryColumn({ type: 'char', length: 36 })
  fileid: string;

  @Column({ type: 'varchar', length: 255 })
  file_name: string;

  @Column({ type: 'varchar', length: 255 })
  file_path: string;

  @Column({ type: 'varchar', length: 255 })
  real_path: string;

  @CreateDateColumn({ type: 'timestamp' })
  create_at: Date;

  @UpdateDateColumn({ type: 'timestamp'})
  uploaded_at: Date;

  @Column({ type: 'int' })
  checksum: number;

  @Column({type: 'boolean', default: false})
  deleted: boolean
}
